package com.eet.export.service;

import com.eet.export.pojo.ExportExcelDto;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * 导出服务
 *
 * @author Administrator
 */
public interface ExportService {

    /**
     * 动态导出Excel
     *
     * @param selectColumn 选中列集合
     * @param dataList     数据源
     * @param response     响应实体
     * @throws IOException IO异常
     */
    void dynamicExport(Map<String, String> selectColumn, List<?> dataList, HttpServletResponse response) throws IOException;

    /**
     * 动态导出--DTO形式传参
     *
     * @param excelDto Excel导出参数封装
     * @param response 响应实体
     * @throws IOException IO异常
     */
    void dynamicExport(ExportExcelDto excelDto, HttpServletResponse response) throws IOException;
}
